package ferp.core.state;

import ferp.core.game.Game;
import ferp.core.game.Input;
import ferp.core.game.Settings;
import ferp.core.log.Log;
import ferp.core.player.Profile;

/**
 * User: user
 * Date: 5/28/12 10:54 PM
 */
class Chill extends State
{
  @Override
  public int process(Game.Listener listener, Profile profile, Game g, Settings settings, Input input) throws Game.Error
  {
    Log.debug(Log.TAG, "ending round " + g.rounds);

    // next state is "summarize" unless mode.chill() changes it to something else
    g.set(State.summarize);
    // process the current mode
    return g.mode().chill(listener, g, settings);
  }
}
